package com.software.sqlite.mapper;


import com.software.sqlite.common.BaseMapper;
import com.software.sqlite.entity.TbMovieWatchRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TbMovieWatchRecordMapper extends BaseMapper<TbMovieWatchRecord> {


    /**
     * 观看列表
     * @param userToken
     * @return
     */
    List<TbMovieWatchRecord> myWatch(@Param("userToken")String userToken);

    /**
     * getMovieWatchRecord
     * @param movieId
     * @param userToken
     * @return
     */
    TbMovieWatchRecord getMovieWatchRecord(@Param("movieId") Integer movieId,@Param("userToken") String userToken);
    /**
     * updateWatchRecord
     * @param movieId
     * @param userToken
     */
    void updateWatchRecord(@Param("movieId") Integer movieId,@Param("userToken") String userToken);

    /**
     * delRecord
     * @param movieId
     * @param userToken
     */
    void delRecord(@Param("movieId") Integer movieId,@Param("userToken") String userToken);

}
